//
//  GLBackGroundView.m
//  QAQ打飞机
//
//  Created by admin on 15/8/28.
//  Copyright (c) 2015年 gl. All rights reserved.
//

#import "GLBackGroundView.h"
@interface GLBackGroundView()
{
    UIImageView *_back1;
    UIImageView *_back2;

}
@end
@implementation GLBackGroundView
#pragma mark -重写init方法
-(instancetype)initWithFrame:(CGRect)frame image:(UIImage *)image
{
    self=[super initWithFrame:frame];
    if (self !=nil) {
        
        _back1 =[[UIImageView alloc]initWithImage:image];
        [self addSubview:_back1];
        _back2 = [[UIImageView alloc]initWithImage:image];
        [self addSubview:_back2];
        
    }


    return self;
}
-(void)updateBGWithFrame:(CGRect)frame1 frame:(CGRect)frame2
{

    [_back1 setFrame:frame1];
    [_back2 setFrame:frame2];


}
@end
